<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象的遍历</title>
</head>
<body>
        <script>
            var people= {
                name:'小心',
                age:3,
                married:'no',
                perents:['father','mother']
            };
            for(var k in people){           //K 是people的值
                console.log(k);             //对象遍历的读取
                console.log(people[k]);   //对象遍历中含有数组的读取
            }
        </script>
</body>
</html>